package com.work.facade.impl;

import java.util.List;

import javax.ejb.EJB;
import javax.ejb.Stateless;

import org.jboss.logging.Logger;

import com.work.dao.ProjectDAO;
import com.work.dto.ProjectDto;
import com.work.facade.ProjectFacade;
import com.work.model.Project;

/**
 * The Class ProjectFacadeImpl.
 *
 * @author "Mihai Roman"
 */
@Stateless
public class ProjectFacadeImpl implements ProjectFacade {
	
	/** The Constant LOG. */
	private static final Logger LOG = Logger.getLogger(ProjectFacadeImpl.class);

	@EJB
	private ProjectDAO projectDAO;
	
	@Override
	public void save(Project project) {
		projectDAO.save(project);
	}

	@Override
	public void delete(Project project) {
		projectDAO.delete(project);
	}

	@Override
	public Project update(Project project) {
		return projectDAO.update(project);
	}

	@Override
	public void saveProject(ProjectDto projectDto) {
	}

	@Override
	public void deleteProject(ProjectDto projectDto) {
	}

	@Override
	public ProjectDto updateProject(ProjectDto newProjectDto) {
		return null;
	}

	@Override
	public List<Project> findAll() {
		return projectDAO.findAll();
	}

}
